#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import requests
suffix = '.htm'
post_url = 'http://www.ting56.com/player/tingchina.php'
d = {}
for x in range(0,1656):
	with open('E:\\pythonTest\\2.txt', 'a+') as f:
		url = 'yousheng/21504/play_21504_%s.htm' % (x)
		d = {'url': url}
		r = requests.post(post_url, data=d)
		f.write(r.json()['url'])
		f.write("\n")
